const express=require('express')  //导入express
const router=express.Router() //创建路由对象
const dashBoard = require('../data/dashBoard.js')

router.get('/statistics/total', function(req,res){  //挂载获取用户列表的路由
    res.send(dashBoard.total)
})

router.get('/statistics/user',function(req,res){  // 挂载添加用户的路由
  res.send(dashBoard.user)
})

router.get('/statistics/project',function(req,res){  // 挂载添加用户的路由
    res.send(dashBoard.project)
})
module.exports=router //向外导出对象